package com.blog.cloud.api.dto;

import com.fasterxml.jackson.annotation.JsonAlias;
import jakarta.validation.constraints.NotBlank;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class NameLoginDto {

    @JsonAlias(value = {"name", "nickname"})
    @NotBlank(message = "用户名不能为空")
    private String username;

    @NotBlank(message = "密码不能为空")
    private String password;

    @NotBlank(message = "验证码唯一key不能为空")
    private String key;

    @NotBlank(message = "图形验证码不能为空")
    private String code;
}
